package com.qing.demo.netty.demo1.bio.client;

import com.qing.demo.netty.demo1.bio.server.BioServerHandler;

import java.io.IOException;
import java.net.Socket;
import java.nio.charset.Charset;

/**
 * @author caozhipeng
 * @date 2025/7/22
 */
public class BioClient {
    public static void main(String[] args) {
        try {
            Socket socket=new Socket("127.0.0.1",7379);
            BioClientHandler bioClientHandler=new BioClientHandler(socket, Charset.forName("utf-8"));
            bioClientHandler.start();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
